package com.yiqi.liebang.common.widget.filter.entity;

import android.text.TextUtils;

import com.baiiu.filter.ClassifyBo;

/**
 * 描述：
 */
public class FilterUrl {
    private volatile static FilterUrl filterUrl;

    private FilterUrl() {
    }

    public static FilterUrl instance() {
        if (filterUrl == null) {
            synchronized (FilterUrl.class) {
                if (filterUrl == null) {
                    filterUrl = new FilterUrl();
                }
            }
        }
        return filterUrl;
    }


    public ClassifyBo doubleListLeft;
    public ClassifyBo doubleListRight;
    public ClassifyBo singleServicePosition;
    public ClassifyBo singleSortPosition;
    public String doubleGridTop;
    public String doubleGridBottom;


    public int position;
    public ClassifyBo positionTitle;

    @Override
    public String toString() {

        StringBuilder buffer = new StringBuilder();


        if (doubleListLeft!=null) {
            buffer.append("doubleListLeft=");
            buffer.append(doubleListLeft);
            buffer.append("\n");
        }

        if (doubleListRight!=null) {
            buffer.append("doubleListRight=");
            buffer.append(doubleListRight);
            buffer.append("\n");
        }




        if (singleServicePosition!=null) {
            buffer.append("singleServicePosition=");
            buffer.append(singleServicePosition);
            buffer.append("\n");
        }

        if (singleSortPosition!=null) {
            buffer.append("singleSortPosition=");
            buffer.append(singleSortPosition);
            buffer.append("\n");
        }




        return buffer.toString();
    }

    public void clear() {
        filterUrl = null;
    }


}